import { ArbitratorSchema } from '@src/components/schema/arbitrator'
import { CaseSchema, OtherPersonSchema } from '@src/components/schema/caseSchema'
import React from 'react'
const initState: {
  caseDetail: CaseSchema | null,
  caseid: string,
  operate: string,
  otherPerson: OtherPersonSchema[],
  arbitrators: ArbitratorSchema[],
  editable: boolean,
  initCaseDetail: () => void,
  initOtherPerson: () => void
} = {
  caseDetail: null,
  caseid: '',
  operate: '',
  otherPerson: [],
  arbitrators: [],
  editable: true,
  initCaseDetail: () => {},
  initOtherPerson: () => {}
}
export const CaseContext = React.createContext(initState)
